package com.xxxx.vao.mail;

import com.xxxx.vao.server.constant.MailConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @author ：xiongl
 * @date ：Created in 2021/4/23 15:10
 * @description：邮件服务启动类
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class VaoMailApplication {

    public static void main(String[] args) {
        SpringApplication.run(VaoMailApplication.class);
    }

    @Bean
    public Queue queue(){
        return new Queue(MailConstants.MAIL_QUEUE_NAME);
    }
}
